import request  from '@/utils/request';

import { BASE_URL } from '@/config/query';

export async function queryPage({ pageSize = 10, pageNum = 1, ...res }) {
  return request(`${BASE_URL}/qr_code/page`, { pageSize, pageNum, ...res })
}

export async function exportQrcode(ids) {
  return request(`${BASE_URL}/qr_code/blank/list`, { idList: ids })
}

export async function create(num) {
  return request(`${BASE_URL}/qr_code/batch/blank/create`, { quantity: num })
}

export async function remove(id) {
  return request(`${BASE_URL}/qr_code/remove/${id}`)
}